﻿<?xml version="1.0" encoding="utf-8" ?>
<settings>
  <configuration_type_map>
    <concatenate_strings assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.Rules.ConcatenateStringsRule"/>
    <format assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.Rules.FormatRule"/>
    <if_true assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.Rules.IfTrueRule"/>
    <is_equal assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.Rules.IsEqual"/>
    <append_to_file assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.Rules.AppendToFileRule"/>

    <field assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.RuleElements.FieldElement"/>
    <pattern assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.RuleElements.PatternElement"/>
    <true assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.RuleElements.ListOfRulesElement"/>
    <else assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.RuleElements.ListOfRulesElement"/>
    <rules assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.RuleElements.ListOfRulesElement"/>
    <value assembly="SharpObjects.RuleEngine" type="SharpObjects.RuleEngine.RuleElements.ValueElement"/>

  </configuration_type_map>

  <if_true>
    <field data_store="data">used</field>
    <true>
      <format output="mileage">
        <field data_store="data" data_type="double">mileage</field>
        <pattern>Mileage: {0:###,##0}</pattern>
      </format>
      <format output="used_or_new">
        <pattern>Used</pattern>
      </format>
    </true>
    <else>
      <format output="used_or_new">
        <pattern>New</pattern>
      </format>
    </else>
  </if_true>
</settings>
